package com.wz.two;

import com.wz.two.Man;
import com.wz.two.ManDecoratorA;

/**
 * @description:
 * @author: WZ
 * @create: 2019-02-11 09:56
 **/

public class Test {

    public static void main(String[] args) {
        Man man = new Man();
        ManDecoratorA md1 = new ManDecoratorA();
        ManDecoratorA.ManDecoratorB md2 = new ManDecoratorA.ManDecoratorB();

        md1.setPerson(man);
        md2.setPerson(md1);
        md2.eat();
    }
}
